Skip to content

Conversation

idurotola
Copy link

Fix TypeError: this.cacheable is not a function by adding a conditional trigger.

Found an example on css-loader here. This is called with this.cacheable && this.cacheable(); to prevent a break.

@10xjs
Copy link
Contributor

10xjs commented Mar 16, 2017

@andela-idurotola Please keep this PR focused on the actual fix. Is there a reason the configs are updated here?

@10xjs
Copy link
Contributor

10xjs commented Mar 16, 2017

What are the conditions under which this was failing?

@idurotola
Copy link
Author

idurotola commented Mar 16, 2017 via email

@10xjs
Copy link
Contributor

10xjs commented Mar 16, 2017

I agree on waiting for the separate eslint update. I'm still curious what causes the this.cacheable() issue.

@idurotola
Copy link
Author

idurotola commented Mar 16, 2017

I just tried to reproduce the error now, I am unable to. Most likely a few versions have changed.

While running test now with jest, I got the error TypeError: Cannot read property 'cacheable' of undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants